DropDownList in itemlarına kod tarafında erişmek

protected void selectAssignee_OnSelectedIndexChanged(object sender, EventArgs e)
   
{
       
DropDownList dropDownList = (DropDownList)sender;
       
ListViewItem listView = (ListViewItem)dropDownList.NamingContainer;

       
var test = listView.DataItem;
       
string test2 = listView.FindControl("customerId").ToString();

       
int rowIndex = (int)listView.DataItemIndex;
       
Label lblMessage = (Label)listView.FindControl("customerId");
   
}
  



Yorum :
Sende yorum kat..